home *** CD-ROM | disk | FTP | other *** search
/ Mesolore / Mesolore - Disc 1.iso / pc / data / Select a Site.dir / 00005_Script_5 < prev    next >
Text File  |  2001-01-26  |  508b  |  20 lines

  1. on mouseDown
  2.   hilite line the mouseline of field "output"
  3.   
  4.   temp = line the mouseline of field "output2"
  5.   if temp contains"-" then
  6.     set the itemdelimiter = "-"
  7.     cityname = word 1 of item 1 of temp
  8.   else
  9.     set the itemdelimiter = ","
  10.     cityname = word 1 of item 1 of temp
  11.   end if
  12.   
  13.   set the itemdelimiter = ","
  14.   fullname = item 1 of temp
  15.   coords = "point(" & item 2 of temp & "," & item 3 of temp & ")"
  16.   tell the stage to findCity coords,cityname,fullname
  17.   --  
  18. end
  19.  
  20.